NET MESSAGE SOUND

This command will return a sound from the current net message.

  Syntax
NET MESSAGE SOUND Sound Number
  Parameters
Sound Number
Integer
The sound number

  Returns

This command does not return a value.

  Description

The net message must be of the sound type or the command will fail. You can determine the type using the NET MESSAGE TYPE command.

  Example Code
rem Network game can communicate sounds, images and 3D data
while inkey$()<>"z"
cls
print "SENDING..."
GuarenteePacket=1
load sound "gun.wav", 1
send net message sound 0, 1, GuarenteePacket
delete sound 1
rem Receive Part (from all other players)
get net message
if net message exists()=1 then print "RECEIVING..."
while net message exists()=1
if net message type()=7
net message sound 1
endif
get net message
endwhile
endwhile
  See also

MULTIPLAYER Commands Menu
Index